package com.yuexunit.finance.system.service;

import java.util.List; 

import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;

import com.yuexunit.inject.annotation.Implements;
import com.yuexunit.permission.entity.AccountRoleEntity;
import com.yuexunit.persist.PersistUtil;

/**
 * @author wenwenlong
 */
@Implements(AccountRoleService.class)
public class AccountRoleServiceImpl implements AccountRoleService {

	@Override
	public List<AccountRoleEntity> inquireAccountRoleList(Long roleId) {
		DetachedCriteria criteria = DetachedCriteria.forClass(AccountRoleEntity.class);
		criteria.add(Restrictions.eq("roleId", roleId));
		return PersistUtil.get(criteria);
	}
}
